package com.syedu.day13.homework1;

import lombok.Data;

/**
 * description：
 * @author Administrator
 * @date 2022/3/28 9:13
 */
@Data
public class Student {
    private Long id;
    private static Long guid = 10000L;
    private String name;
    private Integer age;

    public Student(){
        this.id = guid++;
    }

    public Student(String name, Integer age) {
        this.id = guid++;
        this.name = name;
        this.age = age;
    }
}